from core.config import EXCLUDE_FILTER
import re

def filter_checked(request):
    if re.match(r'static/*.*', request.path.lower().strip('/'), re.M | re.I):
        return False
    return not EXCLUDE_FILTER.__contains__(request.path.lower().strip('/'))